package com.liyongjian.xhban.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.liyongjian.xhban.model.emumm.LiveDieState;
import com.liyongjian.xhban.model.emumm.MediaType;


@Entity
@Table(name = "tb_blog_media")
public class BlogMedia extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    public Long blogId;
    public String url;
    @Column(name = "typee", columnDefinition = "tinyint")
    public MediaType type = MediaType.PIC;
    @Column(columnDefinition = "tinyint")
    public LiveDieState state = LiveDieState.LIVE;

    public BlogMedia(Long id) {
        this.id = id;
    }

    public BlogMedia() {}

}
